// 导入CSS样式
import "./assets/material-design-iconic-font.min.css";
import "./assets/style.min.css";

// 导入Vue Markdown编辑器组件及其主题和样式
import VMdPreview from "@kangc/v-md-editor/lib/preview";
import "@kangc/v-md-editor/lib/style/preview.css";
import githubTheme from "@kangc/v-md-editor/lib/theme/github.js";
import "@kangc/v-md-editor/lib/theme/style/github.css";
// 导入高亮显示库
import hljs from "highlight.js";
// 导入Element Plus组件库
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
// import './assets/font/iconfont.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 使用GitHub主题和highlight.js进行代码高亮
VMdPreview.use(githubTheme, {
    Hljs: hljs,
});

import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(router,ElementPlus);
// 使用Vue Markdown预览组件
app.use(VMdPreview);

app.mount("#app");
